<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
    $jsonurl = "http://ebird.org/ws1.1/data/obs/geo/recent?lng=-76.51&lat=42.46&dist=2&back=1&maxResults=500&locale=en_US&fmt=json&includeProvisional=true";
    $json = file_get_contents($jsonurl);
    $json_output = json_decode($json);
    print_r($json_output);
    $houseSparrow = array_filter($json_output, function($obj)
    {
        return $obj->comName == "Turkey Vulture";
    });
    //print_r($houseSparrow);
?>